﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MDI多文档处理
{
    public partial class Form3 : Form
    {
        private string name, age, nicheng;
        public string Name1 { get => name; set => name = value; }
        public string Age { get => age; set => age = value; }
        public string Nicheng { get => nicheng; set => nicheng = value; }

        private void Form3_Load(object sender, EventArgs e)
        {
            listBox1.Items.Add($"欢迎{name}({nicheng})加入！");
        }

        public Form3()
        {
            InitializeComponent();
        }

        public Form3(string name,string age,string nicheng)
        {
            InitializeComponent();
            this.name = name;
            this.age = age;
            this.nicheng = nicheng;
        }

      
    }
}
